package com.alwvfhp.tools.Powershell.thread;

import com.alwvfhp.tools.Powershell.service.QidianPowershell.Result;

public class ClearMapThread implements Runnable {
	private Result result;
	private Integer period;
	public ClearMapThread(Result result,Integer period) {
		this.result=result;
		this.period=period;
	}
	@Override
	public void run() {
		try {
			int count=this.period/1000;
			while((count--)>0){
				Thread.sleep(1000);
				if(null==result)break;
			}
			if(null!=result)result=null;
		} catch (Exception e) {
			// TODO: handle exception
		}
	}
}
